import { useEffect } from 'react'

export const mounted = (cb: Function) => {
  useEffect(() => {
  cb()
  }, [])
}
